package jdos.dos;

import jdos.cpu.Callback;
import jdos.hardware.Memory;
import jdos.misc.Log;
import jdos.util.Ptr;

public class Dos_tables {
    static private final int DOS_PRIVATE_SEGMENT = 0xc800;
    static private final int DOS_PRIVATE_SEGMENT_END = 0xd000;

    /*RealPt*/int DOS_TableUpCase;
    /*RealPt*/int DOS_TableLowCase;

    static /*Bitu*/int call_casemap;

    static private int dos_memseg=DOS_PRIVATE_SEGMENT;

    static public /*Bit16u*/int DOS_GetMemory(/*Bit16u*/int pages) {
        if (pages+dos_memseg>=DOS_PRIVATE_SEGMENT_END) {
            Log.exit("DOS:Not enough memory for internal tables");
        }
        /*Bit16u*/int page=dos_memseg;
        dos_memseg+=pages;
        return page;
    }

}
